import BaseSprite from "../../Base/BaseSprite";
import { EResType } from "../../Common/Enum";
import GameUtil from "../../Util/GameUtil";
import { LoadUtil } from "../../Util/LoadUtil";

const { ccclass, property } = cc._decorator;

@ccclass
export class ItemWord extends BaseSprite {

    @property({ type: cc.Sprite, tooltip: "艺术字" })
    private word: cc.Sprite = null;

    protected start() { }

    public setValue(type: EResType, value: number | string, size?: number) {
        LoadUtil.instance.setSpriteFrame(this.word, type, value, size, size);
    }
}